package puziran.sofa.util;

import java.util.Map;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class JSONHelper {
	public static Gson g = new GsonBuilder().create();
	public static void main(String[] args) {
		
	}
	public static String Map2Json(Map<?,?> map){
		return g.toJson(map);
	}
	public static Map<?,?> JSON2Map(String json){
		return g.fromJson(json,Map.class);
	}
}
